package com.micro.commonlibrary.tools;

import android.util.Log;

/**
 * 用来控制LOG 是否打印
 */
public class LogTools {
    private static boolean isLog = true;
    private LogTools(){

    }
    public static void log_D(String key, String content) {
        if (isLog) {
            Log.d(key, content);
        }
    }

    public static void log_e(String key, String content) {
        if (isLog) {
            Log.e(key, content);
        }
    }

    public static void log_i(String key, String content) {
        if (isLog) {
            Log.i(key, content);
        }
    }

    public static void log_w(String key, String content) {
        if (isLog) {
            Log.w(key, content);
        }
    }

    public static void log_v(String key, String content) {
        if (isLog) {
            Log.v(key, content);
        }
    }
}
